package com.psychology.dto;

import lombok.Data;
import javax.validation.constraints.*;
import java.util.List;

@Data
public class TherapistProfileDTO {
    @NotBlank(message = "姓名不能为空")
    @Size(min = 2, max = 20, message = "姓名长度应为2-20个字符")
    private String name;

    @NotBlank(message = "职称不能为空")
    @Size(max = 50, message = "职称长度不能超过50个字符")
    private String title;

    @NotBlank(message = "专业资质不能为空")
    private String qualification;

    @NotBlank(message = "从业经验不能为空")
    private String experience;

    @NotEmpty(message = "请至少选择一个擅长领域")
    private List<String> fields;

    @NotBlank(message = "个人简介不能为空")
    @Size(min = 50, max = 1000, message = "个人简介长度应在50-1000字之间")
    private String bio;

    @NotBlank(message = "专业特长不能为空")
    private String expertise;

    private String phone; // 只读字段，不需要验证

    @Email(message = "请输入正确的邮箱格式")
    private String email;
}